package com.zbkj.service.service.adminregion;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.model.zfbadminregion.ZfbAdminRegion;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.request.SystemAdminRequest;
import com.zbkj.common.request.adminregion.AdminRegionUserAddRequest;
import com.zbkj.common.response.zfbadminregion.ZfbAdminRegionUserResponse;
import com.zbkj.common.vo.CityVo;
import com.zbkj.common.vo.MyRecord;

import java.util.List;

public interface IZfbAdminRegionService extends IService<ZfbAdminRegion> {

    boolean platformSaveAccount(AdminRegionUserAddRequest systemAdminAddRequest);


    boolean platformUpdateAccount(AdminRegionUserAddRequest systemAdminAddRequest);

    List<ZfbAdminRegionUserResponse> getPlatformList(SystemAdminRequest request, PageParamRequest pageParamRequest);

    /***
     * 校验账号是否是区域管理员
     *
     * @param adminType
     * @return
     */
    boolean checkIsRegionAdminType(Integer adminType);

    /**
     * 查询区域管理员详情
     *
     * @param id
     * @return
     */
    ZfbAdminRegionUserResponse getAdminRegionUser(Integer id);


    /**
     * 删除账号
     *
     * @param id
     * @return
     */
    boolean deleteAdminRegionUser(Integer id);

    /**
     * 获取当前用户管理区域
     *
     * @return
     */
    List<CityVo> getCurrentUserRegion();
}
